package com.ironman.common.entity;

import lombok.Getter;

import java.util.Date;

@Getter
public class SpeedData extends BaseData {

    /**
     * 航速(cm/s)
     */
    private final Double gpsSpeed;

    public SpeedData(Date ts, Double gpsSpeed) {
        super(ts);
        this.gpsSpeed = gpsSpeed;
    }

    @Override
    public Double calValue() {
        return gpsSpeed;
    }
}